package com.wxapp.admin.service.controller.client;

import com.wxapp.admin.service.service.CompanyService;
import com.wxapp.common.constant.base.IBaseController;
import com.wxapp.common.constant.pojo.vm.ResultVm;
import com.wxapp.common.constant.pojo.vo.UserVo;
import com.wxapp.common.core.annotation.User;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author lgl
 * @Description 公司
 * @Datetime 2022/6/2 10:36
 * @Modified By
 */
@RestController
@Tag(name = "公司管理")
@RequestMapping("/client/company")
@RequiredArgsConstructor
public class CompanyClientController extends IBaseController {
    private final CompanyService companyService;

    @GetMapping("/getPictureByUser")
    @Operation(summary ="获取公司图片")
    public ResultVm<List<String>> getPictureByUser(@Schema(hidden = true) @User UserVo userVo) {
        return companyService.getPictureByUser(userVo);
    }
}
